<template>
    <view class="test-page">

    </view>
</template>

<script>
    export default {
        data() {
            return {}
        },
        mounted() {
            this.h5_getUserProfile()
        },
        methods: {
            h5_getUserProfile() {
                uni.getUserProfile({
                    desc: "用于完善会员资料",
                    success: () => {
                        uni.showToast({
                            title: '微信登录成功',
                            icon: 'loading',
                            duration: '50000'
                        })
                    },
                    fail: () => {
                        uni.showToast({
                            title: '微信登录失败',
                            icon: 'loading',
                            duration: '50000'
                        })
                    },
                });
            },
        },
    }
</script>

<style lang="scss" scoped>
    .test-page {}
</style>